package com.ruoyi.pg.costSetting.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.utils.PageUtils;
import com.ruoyi.pg.costSetting.domain.PgChargedItems;
import com.ruoyi.pg.costSetting.vo.PgChargedItemsVo;
import com.ruoyi.pg.costSetting.mapper.PgChargedItemsMapper;
import com.ruoyi.pg.costSetting.service.IPgChargedItemsService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 收费项目Service业务层处理
 *
 * @author Ming
 * @date 2025-10-20
 */
@Service
public class PgChargedItemsServiceImpl extends ServiceImpl<PgChargedItemsMapper, PgChargedItems> implements IPgChargedItemsService {

    @Override
    public TableDataInfo<PgChargedItemsVo> queryList(PgChargedItemsVo entity) {
        return PageUtils.buildDataInfo(this.baseMapper.queryList(PageUtils.buildPage(), entity));
    }

    @Override
    public List<PgChargedItemsVo> queryAll(PgChargedItemsVo entity) {
        return this.baseMapper.queryList(entity);
    }

    @Override
    public PgChargedItemsVo queryById(Long id) {
        return this.baseMapper.queryById(id);
    }
}
